-- GENERATED SPELL FOR [Nethermine Ravager] --


function spell0_23326(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23326', 15000, 1)
end

function spell1_23326(pUnit, Event) --@Rock Shell,n/a--
pUnit:FullCastSpellOnTarget(33810,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23326', 6298, 1)
end

function Sorts_23326(pUnit, Event)
local choix_sorts_23326 = math.random(0, 1)
if choix_sorts_23326 == 0 then
pUnit:RegisterEvent('spell0_23326', 1, 1)
end
if choix_sorts_23326 == 1 then
pUnit:RegisterEvent('spell1_23326', 1, 1)
end
end

function mob23326_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23326', math.random(1500, 3000), 1)
end

function mob23326_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23326_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23326_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23326, 1, 'mob23326_Action')
RegisterUnitEvent(23326, 2, 'mob23326_Leave')
RegisterUnitEvent(23326, 3, 'mob23326_Kill')
RegisterUnitEvent(23326, 4, 'mob23326_Die')
